package com.wn.pettyloan.mapper;

import com.wn.pettyloan.dto.RepayDto;
import com.wn.pettyloan.entity.Repay;
import com.wn.pettyloan.po.RepayPo;
import com.wn.pettyloan.vo.RepayVo;

import java.util.List;

/**
 * @author mi-xu
 * @description 针对表【repay】的数据库操作Mapper
 * @createDate 2022-12-06 13:35:49
 * @Entity com.wn.pettyloan.entity.Repay
 */
public interface RepayMapper {
    RepayPo selInfoByContractId(Integer contractId);

    Repay selRepayAlready(Integer repayRecordId);

    RepayVo selTopInfo(RepayDto repayDto);

    List<RepayVo> selAllRepay(RepayDto repayDto);

    int deleteByPrimaryKey(Long id);

    int insert(Repay record);

    int insertSelective(Repay record);

    Repay selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Repay record);

    int updateByPrimaryKey(Repay record);
}
